package com.company.lagou.homework;

import java.util.Scanner;

public class ChessPlate {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int row = 16;
        int col = 16;
        //int hor=0,ver=0,sla1=0,sla2=0;

        //生成五子棋盘
        int[][] chess = new int[row + 1][col + 1];

        //给第一行填字

        for (int i = 1; i < chess[0].length; i++) {
            chess[0][i] = i;
        }

        //给第一列填字
        for (int i = 1; i < chess[0].length; i++) {
            chess[i][0] = i;
        }
        //int m,n;
        //boolean flag=true;//true 表示黑方下    false表示白方下
        //显示棋盘
        for (int i = 0; i < chess.length; i++) {
            for (int j = 0; j < chess[i].length; j++) {
                if (i == 0) {
                    System.out.print(chess[i][j] + " ");
                } else if (j == 0) {
                    System.out.print(chess[i][j] + " ");
                } else {
                    System.out.print("+ ");
                }
            }
            System.out.println();
        }
    }
}
